import request from '@/utils/request'
// 查询收款单列表
export function listPaymentReceipt(query) {
    return request({
      url: '/settle/paymentReceipt/list',
      method: 'post',
      data: query
    })
  }


  // 审核收款单
export function auditPaymentReceipt(id) {
    return request({
      url: '/settle/paymentReceipt/audit/' + id,
      method: 'post'
    })
  }

  // 取消审核收款单
export function auditCancelPaymentReceipt(id) {
    return request({
      url: '/settle/paymentReceipt/auditCancel/' + id,
      method: 'post'
    })
  }

  // 删除收付款单
export function delPaymentReceipt(id) {
    return request({
      url: '/settle/paymentReceipt/delete/' + id,
      method: 'post'
    })
  }

  // 新增收款单
export function addPaymentReceipt(data) {
  return request({
    url: '/settle/paymentReceipt/add',
    method: 'post',
    data: data
  })
}

// 修改收款单
export function updatePaymentReceipt(data) {
  return request({
    url: '/settle/paymentReceipt/update',
    method: 'post',
    data: data
  })
}

// 查询收付款单详细
export function getPaymentReceipt(id) {
  return request({
    url: '/settle/paymentReceipt/' + id,
    method: 'get'
  })
}

// 收款单关闭
export function close(data) {
  return request({
    url: '/settle/paymentReceipt/close',
    method: 'post',
    data: data
  })
}